package com.weipt.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: Hello_Swagger
 * @description:
 * @Company: 汇华(北京)信息咨询服务有限公司
 * @author: peter.wei
 * @create: 2020-05-13 16:33
 **/
@RestController
@Api(tags="测试类")
public class SwaggerController {

    @ApiOperation(value = "测试方法")
    @PostMapping("/test")
    public String testSwagger(@ApiParam(value = "用户名", required = true)
                              @RequestParam(name = "userName") String userName){
        return "Heller Swagger";
    }
}